package com.urea.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.urea.common.annotation.Excel;
import com.urea.common.core.domain.BaseEntity;

/**
 * 终端通信日志对象 t_terminal_comm_log
 * 
 * @author liuzd
 * @date 2023-08-01
 */
@TableName("t_terminal_comm_log")
@Data
@ToString
public class TerminalCommLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 终端id */
    @Excel(name = "终端id")
    @ApiModelProperty( "终端id")
    private Long terminalId;

    /** 终端编号 */
    @Excel(name = "终端编号")
    @ApiModelProperty( "终端编号")
    private String terminalNo;

    /** 通信类型;config:配置，run:出货，result:上报结果，stop:停止 */
    @Excel(name = "通信类型;config:配置，run:出货，result:上报结果，stop:停止")
    @ApiModelProperty( "通信类型;config:配置，run:出货，result:上报结果，stop:停止")
    private String commType;

    /** 报文 */
    @Excel(name = "报文")
    @ApiModelProperty( "报文")
    private String content;

    /** 状态;0失败，1成功 */
    @Excel(name = "状态;0失败，1成功")
    @ApiModelProperty( "状态;0失败，1成功")
    private String status;

    /** 流水号 */
    @Excel(name = "流水号")
    @ApiModelProperty( "流水号")
    private String serialNo;

    /** 业务id */
    @Excel(name = "业务id")
    @ApiModelProperty( "业务id")
    private Long bizId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty( "创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;
}
